package itdep.domain.event;

import itdep.domain.student.EducationType;

import javax.persistence.*;

/**
 * @author kara (latest modification by kara)
 * @version $Revision: 11 $   $Date: 2010-06-16 10:18:57 +0000 (Wed, 16 Jun 2010) $
 */
@Entity
@DiscriminatorValue(value = "14")
public class ChangePaymentlEvent extends StudentEvent {

	@ManyToOne(targetEntity = EducationType.class, fetch = FetchType.LAZY, cascade = {CascadeType.MERGE, CascadeType.PERSIST})
	@JoinColumn(name = "ID_OLD_EDUCATION_TYPE", nullable = true, insertable = true, updatable = true)
	private EducationType oldEducationType;

	public EducationType getOldEducationType() {
		return oldEducationType;
	}

	public void setOldEducationType(EducationType oldEducationType) {
		this.oldEducationType = oldEducationType;
	}

}